﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment
{
    class Todo
    {
        private static int _identity = 1;
        private int _id;
        private int _priority;
        private string _content;
        private DateTime _createDate;
        private DateTime _dueDate;
        private bool _status;

        public Todo()
        {
            _id = _identity;
            _identity++;
            _priority = 0;
            _content = "No Job";
            _createDate = DateTime.Now;
            _dueDate = DateTime.Now;
            _status = false;
        }

        public Todo(int priority, string content, DateTime createDate, DateTime dueDate)
        {
            _id = _identity;
            _identity++;
            _priority = priority;
            _content = content;
            _createDate = createDate;
            _dueDate = dueDate;
            _status = false;
        }

        public int ID
        {
            get { return _id; }
        }

        public int Priority
        {
            get { return _priority; }
            set { _priority = value; }
        }

        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        public DateTime CreateDate
        {
            get { return _createDate; }
        }

        public DateTime DueDate
        {
            get { return _dueDate; }
            set { _dueDate = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }
    }
}
